/*
 * Created on 17-ene-2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package hotel.ejb;

import java.rmi.RemoteException;

import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

/**
 * @ejb.bean name="Client"
 *           display-name="Name for Client"
 *           description="Description for Client"
 *           jndi-name="ejb/ClientEnt"
 *           type="CMP"
 *           cmp-version="2.x"
 *           view-type="local"
 * 
 * @ejb.persistence table-name="Client"
 *   
 * @ejb.value-object match="*" 
 *                   name="Client"
 * 
 * @jboss.persistence create-table="true"
 *                    remove_table="false"
 * 
 * @ejb.util generate="physical"
 * 
 * @ejb.finder signature="java.util.Collection findAll()" result-type-mapping="Local"
 */
public abstract class ClientBean implements EntityBean {

	/**
	 * 
	 */
	public ClientBean() {
		super();
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#ejbActivate()
	 */
	public void ejbActivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#ejbLoad()
	 */
	public void ejbLoad() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#ejbPassivate()
	 */
	public void ejbPassivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#ejbRemove()
	 */
	public void ejbRemove()
		throws RemoveException,
		EJBException,
		RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#ejbStore()
	 */
	public void ejbStore() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
	 */
	public void setEntityContext(EntityContext ctx)
		throws EJBException,
		RemoteException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see javax.ejb.EntityBean#unsetEntityContext()
	 */
	public void unsetEntityContext() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	/**
	 * Create method
	 * @ejb.create-method  view-type = "both"
	 */
	public hotel.interfaces.ClientPK ejbCreate(
		hotel.interfaces.ClientValue value) throws javax.ejb.CreateException {
		// TODO Auto-generated method stub
		this.setDNI(value.getDNI());
		this.setNom(value.getNom());
		return null;
	}
	/**
	 * Post Create method
	 */
	public void ejbPostCreate(hotel.interfaces.ClientValue value)
		throws javax.ejb.CreateException {
		// TODO Auto-generated method stub
	}
	/**
	 * Getter for CMP Field DNI
	 *
	 * @ejb.pk-field
	 * @ejb.persistent-field
	 * @ejb.interface-method   view-type="both"
	 */
	public abstract java.lang.Integer getDNI();

	/**
	 * Setter for CMP Field DNI
	 *
	 * @ejb.interface-method   view-type="both"
	 */
	public abstract void setDNI(java.lang.Integer value);

	/**
	 * Getter for CMP Field Nom
	 *
	 * 
	 * @ejb.persistent-field
	 * @ejb.interface-method   view-type="both"
	 */
	public abstract String getNom();

	/**
	 * Setter for CMP Field Nom
	 *
	 * @ejb.interface-method   view-type="both"
	 */
	public abstract void setNom(String value);

	/**
	* @ejb.interface-method view-type="local"
	* 
	* @ejb.relation           name = "ReservaClient"
	*                         role-name = "client-te-reserva"
	* 
	*/
	public abstract java.util.Collection getReserves();

	/**
	* @ejb.interface-method
	*      view-type="local"
	*/
	public abstract void setReserves(java.util.Collection value);
}